const { mysql } = require('../qcloud')

module.exports = async ctx =>{
  await mysql('book').select('*').then(res=>{
    ctx.state.data = res
  })
}